const app = getApp(); //引入导航

var util = require('../../utils/common.js'); //引入公共JS


var time = require('../../utils/utils.js'); // 引入时间戳转换时间


import { ReserveDetail } from 'reserveDetail.model.js';
var reserveDetail = new ReserveDetail();
Page({
  data: {
    showIcon: true //显示返回键以及首页

  },
  onLoad: function (options) {
    options['addtime'] = time.formatTimeTwo(options['addtime'], 'Y-m-d'); //时间戳转换成时间

    this.setData({
      'List': options
    });
  },
  liketap: function (e) {
    var aid = e.target.dataset.aid;
    this.data.aid = aid;
    reserveDetail.getYuDingDelete(this.data.aid, data => {
      tt.redirectTo({
        url: '../myReserve/myReserve'
      });
    });
  },
  //分享
  onShareAppMessage: function () {
    util.sharePage();
  }
});